@use '../core/tokens/m2-utils';
@use 'sass:map';

// Tokens that can't be configured through Angular Material's current theming API,
// but may be in a future version of the theming API.
//
// Tokens that are available in MDC, but not used in Angular Material should be mapped to `null`.
// `null` indicates that we are intentionally choosing not to emit a slot or value for the token in
// our CSS.
@function get-unthemable-tokens() {
  @return (
    tooltip-container-shape: 4px,
    tooltip-supporting-text-line-height: 16px,
  );
}

// Tokens that can be configured through Angular Material's color theming API.
@function get-color-tokens($theme) {
  $system: m2-utils.get-system($theme);

  @return (
    tooltip-container-color: map.get($system, inverse-surface),
    tooltip-supporting-text-color: map.get($system, inverse-on-surface),
  );
}

// Tokens that can be configured through Angular Material's typography theming API.
@function get-typography-tokens($theme) {
  $system: m2-utils.get-system($theme);
  @return (
    tooltip-supporting-text-font: map.get($system, body-small-font),
    tooltip-supporting-text-size: map.get($system, body-small-size),
    tooltip-supporting-text-weight: map.get($system, body-small-weight),
    tooltip-supporting-text-tracking: map.get($system, body-small-tracking),
  );
}

// Tokens that can be configured through Angular Material's density theming API.
@function get-density-tokens($theme) {
  @return ();
}
